<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>群组列表 - 社交圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #8b5cf6;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-tertiary: #94a3b8;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --bg-secondary: #f1f5f9;
            --border-light: #e2e8f0;
            --border-medium: #cbd5e1;
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 搜索栏 */
        .search-bar {
            padding: 12px 16px;
            background-color: var(--bg-light);
        }
        
        .search-input-group {
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 10px 16px 10px 40px;
            border-radius: 24px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-white);
            font-size: 0.9rem;
            outline: none;
        }
        
        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
        }
        
        /* 主要内容区域 */
        .content-container {
            padding: 0 16px;
        }
        
        /* 分类标题 */
        .groups-category {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 24px 0 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .groups-category i {
            color: var(--primary);
        }
        
        /* 1. 基础列表式群组 */
        .basic-groups {
            margin-bottom: 24px;
        }
        
        .basic-group-item {
            display: flex;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
            text-decoration: none;
            color: var(--text-primary);
        }
        
        .basic-group-item:last-child {
            border-bottom: none;
        }
        
        .basic-group-avatar {
            width: 56px;
            height: 56px;
            border-radius: 10px;
            background-color: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary);
            margin-right: 14px;
            flex-shrink: 0;
        }
        
        .basic-group-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            object-fit: cover;
        }
        
        .basic-group-info {
            flex: 1;
            min-width: 0;
        }
        
        .basic-group-name {
            font-weight: 600;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .basic-group-meta {
            display: flex;
            align-items: center;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .group-member-count {
            display: flex;
            align-items: center;
            margin-right: 12px;
        }
        
        .group-member-count i {
            font-size: 0.75rem;
            margin-right: 4px;
        }
        
        .group-category {
            background-color: var(--bg-secondary);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
        }
        
        .basic-group-arrow {
            color: var(--text-tertiary);
            font-size: 1rem;
        }
        
        /* 2. 带预览图的群组列表 */
        .preview-groups {
            margin-bottom: 24px;
        }
        
        .preview-group-item {
            display: flex;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
            text-decoration: none;
            color: var(--text-primary);
        }
        
        .preview-group-item:last-child {
            border-bottom: none;
        }
        
        .preview-group-info {
            flex: 1;
            margin-right: 12px;
            min-width: 0;
        }
        
        .preview-group-name {
            font-weight: 600;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .preview-group-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .preview-group-stats {
            display: flex;
            align-items: center;
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }
        
        .preview-group-media {
            width: 80px;
            height: 80px;
            border-radius: var(--radius-sm);
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
        }
        
        .group-single-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .group-multi-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 2px;
            width: 100%;
            height: 100%;
        }
        
        .group-multi-images img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .no-image-placeholder {
            width: 100%;
            height: 100%;
            background-color: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
            font-size: 1.5rem;
        }
        
        /* 3. 卡片式群组展示 */
        .card-groups {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }
        
        .card-group-item {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            text-decoration: none;
            color: var(--text-primary);
        }
        
        .card-group-media {
            width: 100%;
            height: 100px;
            position: relative;
        }
        
        .card-group-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .card-group-avatar {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background-color: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1rem;
            position: absolute;
            bottom: -18px;
            left: 12px;
            border: 3px solid var(--bg-white);
        }
        
        .card-group-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 6px;
            object-fit: cover;
        }
        
        .card-group-content {
            padding: 24px 12px 12px;
        }
        
        .card-group-name {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .card-group-meta {
            display: flex;
            align-items: center;
            font-size: 0.75rem;
            color: var(--text-secondary);
        }
        
        /* 4. 带通知的群组列表 */
        .notified-groups {
            margin-bottom: 24px;
        }
        
        .notified-group-item {
            display: flex;
            align-items: flex-start;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-light);
            text-decoration: none;
            color: var(--text-primary);
        }
        
        .notified-group-item:last-child {
            border-bottom: none;
        }
        
        .notified-group-avatar {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            background-color: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--primary);
            margin-right: 14px;
            flex-shrink: 0;
            position: relative;
        }
        
        .notified-group-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 10px;
            object-fit: cover;
        }
        
        .notification-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background-color: var(--danger);
            color: white;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        
        .notified-group-info {
            flex: 1;
            min-width: 0;
        }
        
        .notified-group-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 4px;
        }
        
        .notified-group-name {
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .notification-time {
            font-size: 0.75rem;
            color: var(--text-tertiary);
        }
        
        .notification-content {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 6px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .notification-preview {
            background-color: var(--bg-secondary);
            padding: 8px 10px;
            border-radius: var(--radius-sm);
            font-size: 0.8rem;
            color: var(--text-primary);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 创建群组按钮 */
        .create-group-btn {
            position: fixed;
            right: 24px;
            bottom: 84px;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background-color: var(--primary);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
            text-decoration: none;
            z-index: 999;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">群组</div>
        <button class="nav-action primary" id="groupSettingsBtn">
            <i class="fas fa-ellipsis-v"></i>
        </button>
    </div>
    
    <!-- 搜索栏 -->
    <div class="search-bar">
        <div class="search-input-group">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索群组...">
        </div>
    </div>
    
    <!-- 主要内容区域 -->
    <div class="content-container">
        <!-- 1. 基础列表式群组 -->
        <h3 class="groups-category">
            <i class="fas fa-list"></i>
            我的群组
        </h3>
        <div class="basic-groups">
            <!-- 有图片的群组 -->
            <a href="#" class="basic-group-item">
                <div class="basic-group-avatar">
                    <img src="https://picsum.photos/id/64/200/200" alt="摄影爱好者">
                </div>
                <div class="basic-group-info">
                    <div class="basic-group-name">摄影爱好者</div>
                    <div class="basic-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>2,451 成员</span>
                        </div>
                        <div class="group-category">兴趣爱好</div>
                    </div>
                </div>
                <i class="fas fa-chevron-right basic-group-arrow"></i>
            </a>
            
            <!-- 无图片的群组 -->
            <a href="#" class="basic-group-item">
                <div class="basic-group-avatar">
                    <i class="fas fa-code"></i>
                </div>
                <div class="basic-group-info">
                    <div class="basic-group-name">前端开发者社区</div>
                    <div class="basic-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>8,732 成员</span>
                        </div>
                        <div class="group-category">技术交流</div>
                    </div>
                </div>
                <i class="fas fa-chevron-right basic-group-arrow"></i>
            </a>
            
            <!-- 有图片的群组 -->
            <a href="#" class="basic-group-item">
                <div class="basic-group-avatar">
                    <img src="https://picsum.photos/id/42/200/200" alt="美食探店">
                </div>
                <div class="basic-group-info">
                    <div class="basic-group-name">美食探店分享</div>
                    <div class="basic-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>5,129 成员</span>
                        </div>
                        <div class="group-category">生活休闲</div>
                    </div>
                </div>
                <i class="fas fa-chevron-right basic-group-arrow"></i>
            </a>
            
            <!-- 无图片的群组 -->
            <a href="#" class="basic-group-item">
                <div class="basic-group-avatar">
                    <i class="fas fa-book"></i>
                </div>
                <div class="basic-group-info">
                    <div class="basic-group-name">读书俱乐部</div>
                    <div class="basic-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>1,254 成员</span>
                        </div>
                        <div class="group-category">文化艺术</div>
                    </div>
                </div>
                <i class="fas fa-chevron-right basic-group-arrow"></i>
            </a>
        </div>
        
        <!-- 2. 带预览图的群组列表 -->
        <h3 class="groups-category">
            <i class="fas fa-image"></i>
            热门推荐群组
        </h3>
        <div class="preview-groups">
            <!-- 带单张图片的群组 -->
            <a href="#" class="preview-group-item">
                <div class="preview-group-info">
                    <div class="preview-group-name">环球旅行摄影</div>
                    <div class="preview-group-desc">分享全球各地的旅行见闻和摄影作品，记录美好瞬间</div>
                    <div class="preview-group-stats">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>12,843 成员</span>
                        </div>
                        <span>•</span>
                        <span>328 个话题/天</span>
                    </div>
                </div>
                <div class="preview-group-media">
                    <img src="https://picsum.photos/id/10/400/400" alt="环球旅行摄影" class="group-single-image">
                </div>
            </a>
            
            <!-- 带多张图片的群组 -->
            <a href="#" class="preview-group-item">
                <div class="preview-group-info">
                    <div class="preview-group-name">创意设计灵感</div>
                    <div class="preview-group-desc">分享平面设计、UI/UX设计、插画等创意作品和灵感来源</div>
                    <div class="preview-group-stats">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>9,562 成员</span>
                        </div>
                        <span>•</span>
                        <span>156 个话题/天</span>
                    </div>
                </div>
                <div class="preview-group-media">
                    <div class="group-multi-images">
                        <img src="https://picsum.photos/id/20/200/200" alt="设计作品1">
                        <img src="https://picsum.photos/id/21/200/200" alt="设计作品2">
                        <img src="https://picsum.photos/id/22/200/200" alt="设计作品3">
                        <img src="https://picsum.photos/id/23/200/200" alt="设计作品4">
                    </div>
                </div>
            </a>
            
            <!-- 无图片的群组 -->
            <a href="#" class="preview-group-item">
                <div class="preview-group-info">
                    <div class="preview-group-name">职场经验交流</div>
                    <div class="preview-group-desc">分享求职技巧、职业规划、职场人际关系处理等经验</div>
                    <div class="preview-group-stats">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>7,321 成员</span>
                        </div>
                        <span>•</span>
                        <span>215 个话题/天</span>
                    </div>
                </div>
                <div class="preview-group-media">
                    <div class="no-image-placeholder">
                        <i class="fas fa-briefcase"></i>
                    </div>
                </div>
            </a>
        </div>
        
        <!-- 3. 卡片式群组展示 -->
        <h3 class="groups-category">
            <i class="fas fa-th-large"></i>
            推荐加入
        </h3>
        <div class="card-groups">
            <!-- 有图片的卡片式群组 -->
            <a href="#" class="card-group-item">
                <div class="card-group-media">
                    <img src="https://picsum.photos/id/96/400/300" alt="健身爱好者">
                    <div class="card-group-avatar">
                        <img src="https://picsum.photos/id/64/100/100" alt="健身爱好者">
                    </div>
                </div>
                <div class="card-group-content">
                    <div class="card-group-name">健身爱好者联盟</div>
                    <div class="card-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>5,642 成员</span>
                        </div>
                    </div>
                </div>
            </a>
            
            <!-- 无图片的卡片式群组 -->
            <a href="#" class="card-group-item">
                <div class="card-group-media">
                    <div class="no-image-placeholder">
                        <i class="fas fa-music"></i>
                    </div>
                    <div class="card-group-avatar">
                        <i class="fas fa-music"></i>
                    </div>
                </div>
                <div class="card-group-content">
                    <div class="card-group-name">独立音乐分享</div>
                    <div class="card-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>3,215 成员</span>
                        </div>
                    </div>
                </div>
            </a>
            
            <!-- 有图片的卡片式群组 -->
            <a href="#" class="card-group-item">
                <div class="card-group-media">
                    <img src="https://picsum.photos/id/43/400/300" alt="手工制作">
                    <div class="card-group-avatar">
                        <img src="https://picsum.photos/id/65/100/100" alt="手工制作">
                    </div>
                </div>
                <div class="card-group-content">
                    <div class="card-group-name">手工制作坊</div>
                    <div class="card-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>2,187 成员</span>
                        </div>
                    </div>
                </div>
            </a>
            
            <!-- 无图片的卡片式群组 -->
            <a href="#" class="card-group-item">
                <div class="card-group-media">
                    <div class="no-image-placeholder">
                        <i class="fas fa-gamepad"></i>
                    </div>
                    <div class="card-group-avatar">
                        <i class="fas fa-gamepad"></i>
                    </div>
                </div>
                <div class="card-group-content">
                    <div class="card-group-name">游戏爱好者</div>
                    <div class="card-group-meta">
                        <div class="group-member-count">
                            <i class="fas fa-users"></i>
                            <span>15,742 成员</span>
                        </div>
                    </div>
                </div>
            </a>
        </div>
        
        <!-- 4. 带通知的群组列表 -->
        <h3 class="groups-category">
            <i class="fas fa-bell"></i>
            群组通知
        </h3>
        <div class="notified-groups">
            <!-- 有图片带通知的群组 -->
            <a href="#" class="notified-group-item">
                <div class="notified-group-avatar">
                    <img src="https://picsum.photos/id/62/200/200" alt="电影评论">
                    <span class="notification-badge">3</span>
                </div>
                <div class="notified-group-info">
                    <div class="notified-group-header">
                        <div class="notified-group-name">电影评论与分享</div>
                        <div class="notification-time">10分钟前</div>
                    </div>
                    <div class="notification-content">有3条新消息提到了你</div>
                    <div class="notification-preview">
                        "你觉得这部电影的结局怎么样？@你"
                    </div>
                </div>
            </a>
            
            <!-- 无图片带通知的群组 -->
            <a href="#" class="notified-group-item">
                <div class="notified-group-avatar">
                    <i class="fas fa-paint-brush"></i>
                    <span class="notification-badge">5</span>
                </div>
                <div class="notified-group-info">
                    <div class="notified-group-header">
                        <div class="notified-group-name">插画艺术交流</div>
                        <div class="notification-time">1小时前</div>
                    </div>
                    <div class="notification-content">群组有5条新动态</div>
                    <div class="notification-preview">
                        "分享我的最新作品，欢迎大家点评"
                    </div>
                </div>
            </a>
        </div>
    </div>
    
    <!-- 创建群组按钮 -->
    <a href="#" class="create-group-btn" id="createGroupBtn">
        <i class="fas fa-plus"></i>
    </a>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-plus-circle nav-icon"></i>
            <span>发布</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-users nav-icon"></i>
            <span>群组</span>
        </a>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 群组点击事件
        document.querySelectorAll('.basic-group-item, .preview-group-item, .card-group-item, .notified-group-item').forEach(item => {
            item.addEventListener('click', function(e) {
                e.preventDefault();
                let groupName;
                
                if (this.classList.contains('basic-group-item')) {
                    groupName = this.querySelector('.basic-group-name').textContent;
                } else if (this.classList.contains('preview-group-item')) {
                    groupName = this.querySelector('.preview-group-name').textContent;
                } else if (this.classList.contains('card-group-item')) {
                    groupName = this.querySelector('.card-group-name').textContent;
                } else if (this.classList.contains('notified-group-item')) {
                    groupName = this.querySelector('.notified-group-name').textContent;
                }
                
                showToast(`进入群组：${groupName}`);
            });
        });
        
        // 创建群组按钮
        document.getElementById('createGroupBtn').addEventListener('click', function(e) {
            e.preventDefault();
            showToast('创建新群组');
        });
        
        // 顶部按钮事件
        document.getElementById('backBtn').addEventListener('click', function() {
            history.back();
        });
        
        document.getElementById('groupSettingsBtn').addEventListener('click', function() {
            showToast('群组设置');
        });
        
        // 底部导航点击
        document.querySelectorAll('.nav-item').forEach(item => {
            item.addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelectorAll('.nav-item').forEach(i => i.classList.remove('active'));
                this.classList.add('active');
                const title = this.querySelector('span').textContent;
                showToast(`已切换到${title}`);
            });
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
    </script>
</body>
</html>

